package descentFly.app.dialogs
{
	import UIFree.uif_component;
	
	import descentFly.app.df_block;
	import descentFly.app.df_events;
	import descentFly.app.df_modalLayer;
	import descentFly.app.df_window;
	
	import flash.events.Event;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class df_optionsWindow extends df_window {
		public static const SIZE: Point = new Point(500, 200);
		public function df_optionsWindow(parent: df_modalLayer) {
			super(parent, SIZE.x, SIZE.y, 'window', true, 1);
			title.text = locale.OPTIONS;
		}
		
		override protected function createDialogComponents(a_layer: df_block): void {
			var inner: Rectangle = a_layer.getInner();
//			if (!dfApp.player.options.login) {
			if (dfApp.social.loginEnable) createButton(a_layer, inner.x, inner.y, locale.SETLOGIN, df_events.SETLOGIN);
		}
		
		override protected function createButtons(a_layer: df_block): void {
			addButton(locale.OK, doSaveOptions);
			addButton(locale.CANCEL, doClose);
		}
		
		protected function doSaveOptions(e: Event): void {
			
		}
	}
}